package com.xckj.cycling.repository

import com.junca.android.service.Request
import com.xckj.cycling.framework.model.Response
import com.xckj.cycling.model.UploadResultModel
import java.io.File

class FileRepository {


    suspend fun upload(file: String): Response<UploadResultModel> {
        return Request.postWithFile(
            "common/upload",
            HashMap<String, File>().apply {
                put("file", File(file))
            })
    }
}